package string;

public class SearchlastString {
    public static void mian(String[] args) {
        String strOrig ="Hello World ,Hello Runoob";
        int lastIndex =strOrig.lastIndexOf("Runoob");
        if(lastIndex == -1){
            System.out.println("没有找到字符串Runoob");
        }else{
            System.out.println("Runoob字符串最后出现的位置:"+lastIndex);
        }
    }
}
